home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib7 / v_09_12 / 9n12114b < prev    next >
Encoding:
Text File  |  1995-11-01  |  477 b   |  21 lines

  1. /* LISTING 5 - CIRCLE.C */
  2. #include "obj.h"
  3.  
  4. /* file-static getcolor member function */
  5. static int circle_getcolor(CIRCLE *pc)
  6.    { return pc->color; }
  7.  
  8.  
  9. /* file-static setcolor member function */
  10. static int circle_setcolor(CIRCLE *pc,
  11.                               int val);
  12.    { return (pc->color = val); }
  13.  
  14.  
  15. /* global CIRCLE_ACTIONS package */
  16. CIRCLE_ACTIONS cact =
  17.    {
  18.    circle_getcolor, circle_setcolor
  19.    };    /* initialize the action package  */
  20.  
  21.